package com.ydd.mapper;

import com.ydd.entity.Dict;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 字典表 Mapper 接口
 * </p>
 *
 * @author hgz
 * @since 2023-05-30
 */
@Mapper
public interface DictMapper extends BaseMapper<Dict> {

    @Select("select value from sys_dict where type = #{interfaceType} ")
    List<String> findByCondition(String condition);

    @Select("select type from sys_dict group by type")
    List<String> findAllType();
}
